package com.mingqi.enetconnected.primary.mytask.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mingqi.enetconnected.R;

import java.util.List;
import java.util.Map;

/**
 * @author li
 * @version 1.0
 * @describe
 * @WeChat 18571658038
 * @date 2018/9/5 星期三.
 */

public class NotificationMessageAdapter extends BaseQuickAdapter<Map<String, Integer>,BaseViewHolder> {

    public NotificationMessageAdapter(@Nullable List<Map<String, Integer>> data) {
        super(R.layout.item_notification_message,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Map<String, Integer> item) {
        helper.setImageResource(R.id.iv_icon,item.get("img"));
        helper.setText(R.id.tv_title,item.get("title"));
    }
}
